#!/usr/bin/python
# pylint: disable-msg = W0102
'''
Created by Colin Gillespie <c.gillespie@ncl.ac.uk>
$LastChangedDate: 2008-03-13 19:50:58 +0000 (Thu, 13 Mar 2008) $

'''

__revision__ = '$Rev: 73 $'


def globalVariables(closure_order=None, method=None, \
    output_format=None, var = {}):
    
    if closure_order:
        var['closure_order'] = int(closure_order)
    elif not var.has_key('closure_order'):
        var['closure_order'] = 4
    
    if method:
        var['method'] = method    
    elif not var.has_key('method'):
        var['method'] = 'Normal'
    
    if output_format:
        var['output_format'] = output_format 
    elif not var.has_key('output_format'):
        var['output_format'] = 'Maple'
    
    return var

